Skip to content

CI: Use setup-msvc-dev action instead of hardcoding the VS install path on Windows - #4861

Merged
seisman merged 2 commits into
mainfrom
ci/setup-msvc-dev
Aug 27, 2026
Merged

CI: Use setup-msvc-dev action instead of hardcoding the VS install path on Windows#4861
seisman merged 2 commits into
mainfrom
ci/setup-msvc-dev

Conversation

@seisman

@seisman seisman commented Aug 25, 2026

Copy link
Copy Markdown
Member

The Windows runner image upgrade moved Visual Studio from "...\2022\Enterprise..." to "...\18\Enterprise...", breaking the hardcoded vcvars64.bat path (see PR #4860).

This PR uses the TheMrMilchmann/setup-msvc-dev action, which locates the VS installation dynamically via vswhere and exports the environment to later steps, so future runner image upgrades don't require another hardcoded-path fix.

Supersedes #4860.

The Windows runner image upgrade moved Visual Studio from
"...\2022\Enterprise\..." to "...\18\Enterprise\...", breaking the
hardcoded vcvars64.bat path (see PR #4860). Use the TheMrMilchmann/setup-msvc-dev
action instead, which locates the VS installation dynamically via vswhere
and exports the environment to later steps, so future runner image
upgrades don't require another hardcoded-path fix.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@seisman seisman added this to the 0.20.0 milestone Aug 25, 2026
@seisman seisman added maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog needs review This PR has higher priority and needs review. labels Aug 25, 2026
@seisman seisman added the run/test-gmt-dev Trigger the GMT Dev Tests workflow in PR label Aug 25, 2026
@seisman
seisman force-pushed the ci/setup-msvc-dev branch from d94bdce to 9f47d7f Compare August 25, 2026 08:45
if: runner.os == 'Windows'
uses: TheMrMilchmann/setup-msvc-dev@368ef7d1ee4d1171b31d4a7f67f4d954f903f5a9 # v4.1.0
with:
arch: x64

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not an issue now, but we might need to set an or statement to the arch to x86_arm64 or amd64_arm64 when #3911 lands.

@seisman
seisman enabled auto-merge (squash) August 27, 2026 01:19
@seisman
seisman disabled auto-merge August 27, 2026 01:19
@seisman
seisman merged commit b453435 into main Aug 27, 2026
11 checks passed
@seisman
seisman deleted the ci/setup-msvc-dev branch August 27, 2026 01:19
@seisman seisman removed needs review This PR has higher priority and needs review. run/test-gmt-dev Trigger the GMT Dev Tests workflow in PR labels Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants